﻿using System.ComponentModel.DataAnnotations.Schema;

namespace K9Nano.Domain.Entities;

public abstract class EntityBase : IEntity
{
    [Column(Order = 0)]
    public long Id { get; set; }

    [Column(Order = 1000)]
    public DateTime CreatedAt { get; set; }

    public bool IsTransient() => Id <= 0;
}
